package com.wanjia.order.server.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @Description  
 * @Author  zhulei
 * @Date 2022-06-20 
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table ( name ="users" )
public class Users  implements Serializable {



	/**
	 * 用户id
	 */
   	@Column(name = "user_id" )
	private Integer userId;

	/**
	 * 用户名称
	 */
   	@Column(name = "user_name" )
	private String userName;

	/**
	 * 用户账号(手机号码)
	 */
   	@Column(name = "user_account" )
	private String userAccount;

	/**
	 * 用户密码
	 */
   	@Column(name = "user_pwd" )
	private String userPwd;

	/**
	 * 用户所属自提点id
	 */
   	@Column(name = "address_id" )
	private Integer addressId;

	/**
	 * 现有积分
	 */
   	@Column(name = "points" )
	private Integer points;

	/**
	 * 总积分
	 */
   	@Column(name = "total_points" )
	private Integer totalPoints;



}
